package zero.tech.games.log.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Select;

import zero.tech.games.entity.log.LogSafetyChange;

public interface LogSafetyChangeMapper {
	void insertBatch(List<LogSafetyChange> list);

	@Select("select count(1) from log_safety_change where club_id=#{club_id} and uid=#{uid} and create_stamp between #{begin} and #{end}")
	int totalCount(int uid, int club_id, Date begin,Date end);
	
	@Select("select * from log_safety_change where club_id=#{club_id} and uid=#{uid} and create_stamp between #{begin} and #{end} order by create_stamp desc limit #{start},#{pageLength}")
	List<LogSafetyChange> findLogSafetyChangeByPage(int uid, int club_id, int start, int pageLength,Date begin, Date end);
}
